//
//  KCTreasureCell.m
//  Golden
//
//  Created by king on 2022/11/24.
//  Copyright © 2022 KC. All rights reserved.
//

#import "KCTreasureCell.h"
#import "KCKit.h"

@interface KCTreasureCell ()

@property (weak, nonatomic) IBOutlet UIImageView *backImg;

@end

@implementation KCTreasureCell

- (void)setModel:(KCTreasureModel *)model {
    
    _model = model;
    [_backImg setImageWithURL:[NSURL URLWithString:_model.pic_url] placeholder:nil options:KCWebImageOptionSetImageWithFadeAnimation completion:^(UIImage *image, NSURL *url, KCWebImageFromType from, KCWebImageStage stage, NSError *error) {}];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    _backImg.layer.cornerRadius = 5;
    _backImg.layer.masksToBounds = YES;
    // Initialization code
}

@end
